import math

class Point(object):
    def __init__(self, x, y):
        self.x = x
        self.y = y
        pass
        pass

if __name__ == '__main__':
    l0 = []
    v0 = []
    l1 = []
    v1 = []
    x0 = []
    y0 = []
    r = []
    x1 = []
    y1 = []
    o1 = []
    y = []
    t0Min = []
    t0Max = []
    t1Min = []
    t1Max = []
    N = int(input())
    for i in range(N):
        l0[i], v0[i], l1[i], v1[i], x0[i], y0[i], r[i], x1[i], y1[i] = map(int, input().split())
        pass

    for i in range(N):
        o1[i] = Point(x0[i] - r[i], -y0[i])
        y[i] = math.sqrt(r[i] * r[i] - (x1[i] - o1[i].x) * (x1[i] - o1[i].x)) + o1[i].y
        t1Min[i] = abs(y0[i] - y[i]) / v1[i]
        t1Max[i] = (abs(y0[i] - y[i]) + l1[i]) / v1[i]
        if x1[i] < o1[i].x:
            t0Min[i] = (abs(o1[i].x - x1[i]) + 0.5 * 3.14 * r[i]) / v0[i]
            t0Max[i] = (abs(o1[i].x - x1[i]) + 0.5 * 3.14 * r[i] + l0[i]) / v0[i]
        else:
            t0Min[i] = (0.5*3.14-(math.asin(abs(o1[i].x - x1[i]) / r)))* r[i] / v0[i]
            t0Max[i] = ((0.5*3.14-(math.asin(abs(o1[i].x - x1[i]) / r)))* r[i] + l0[i]) / v0[i]


        if t1Max[i]<t0Min[i] or t1Min[i]>t0Max[i]:
            print('Yes')
        else:
            print('No')